//
//  NetWorkTools.h
//  AIM
//
//  Created by user10 on 2017/6/5.
//  Copyright © 2017年 user10. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

typedef enum : NSUInteger {
    GET,
    POST,
} AIMRequestMethod;

@interface NetWorkTools : AFHTTPSessionManager

+(instancetype)shareTools;

-(void)settimeoutInterval:(NSTimeInterval)time;
-(void)request:(AIMRequestMethod)method urlString:(NSString *)urlString parametersStr:(NSString *)parametersStr finished:(void (^)(id responseObject,NSError *error))finished;


@end
